package com.library.bookmanagement.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ：ZXM
 * @date ：Created in 2020/5/8 16:52
 * @description：书籍实体类
 */
public class Book implements Serializable {
    private Integer bId;

    private String bName;

    private String bAuthor;

    private String bPublish;

    private Integer bType;

    private Integer bCount;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date icurrentTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date lastTime;

    private Integer bBoolean;

    private Integer borrowCount;
    private String bImg;

    public String getbImg() {
        return bImg;
    }

    public void setbImg(String bImg) {
        this.bImg = bImg;
    }

    private String situation;
    private BookSituation bookSituation;
    private Integer reserveNum;

    public Integer getReserveNum() {
        return reserveNum;
    }

    public void setReserveNum(Integer reserveNum) {
        this.reserveNum = reserveNum;
    }



    public BookSituation getBookSituation() {
        return bookSituation;
    }

    public void setBookSituation(BookSituation bookSituation) {
        this.bookSituation = bookSituation;
    }

    public Integer getbId() {
        return bId;
    }

    public void setbId(Integer bId) {
        this.bId = bId;
    }

    public String getbName() {
        return bName;
    }

    public void setbName(String bName) {
        this.bName = bName == null ? null : bName.trim();
    }

    public String getbAuthor() {
        return bAuthor;
    }

    public void setbAuthor(String bAuthor) {
        this.bAuthor = bAuthor == null ? null : bAuthor.trim();
    }
    public String getbPublish() {
        return bPublish;
    }

    public void setbPublish(String bPublish) {
        this.bPublish = bPublish == null ? null : bPublish.trim();
    }
    public Integer getbType() {
        return bType;
    }

    public void setbType(Integer bType) {
        this.bType = bType;
    }

    public Integer getbCount() {
        return bCount;
    }

    public void setbCount(Integer bCount) {
        this.bCount = bCount;
    }

    public Date getIcurrentTime() {
        return icurrentTime;
    }

    public void setIcurrentTime(Date icurrentTime) {
        this.icurrentTime = icurrentTime;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public Integer getbBoolean() {
        return bBoolean;
    }

    public void setbBoolean(Integer bBoolean) {
        this.bBoolean = bBoolean;
    }

    public Integer getBorrowCount() {
        return borrowCount;
    }

    public void setBorrowCount(Integer borrowCount) {
        this.borrowCount = borrowCount;
    }

    public String getSituation() {
        return situation;
    }

    public void setSituation(String situation) {
        this.situation = situation == null ? null : situation.trim();
    }

    @Override
    public String toString() {
        return "Book{" +
                "bId=" + bId +
                ", bName='" + bName + '\'' +
                ", bAuthor='" + bAuthor + '\'' +
                ", bPublish='" + bPublish + '\'' +
                ", bType=" + bType +
                ", bCount=" + bCount +
                ", icurrentTime=" + icurrentTime +
                ", lastTime=" + lastTime +
                ", bBoolean=" + bBoolean +
                ", borrowCount=" + borrowCount +
                ", situation='" + situation + '\'' +
                ", bookSituation=" + bookSituation +
                '}';
    }
}